import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '@/components/Home.vue'

import Aaa from '@/components/coupon/Aaa.vue'
import Lll from '@/components/logistics/Lll.vue'
import LogisticList from '@/components/logistics/LogisticList.vue'
import LogisticsScanning from '@/components/logistics/LogisticsScanning.vue'
import CouponList from '@/components/coupon/CouponList.vue'



import AftersaleList from '@/components/aftersales/AftersaleList.vue'
import MapList from '@/components/aftersales/MapList.vue'
import BaiduMap from '@/components/map/BaiduMap.vue'
import CreateLogistics from '@/components/logistics/CreateLogistics.vue'
import WatchOrder from '@/components/watch/watchOrder.vue'




import chatkefu from '@/components/chat/chatkefu.vue'
import image from '@/components/chat/image.vue'
import file from '@/components/chat/file.vue'
import local from '@/components/chat/local.vue'
import polp from '@/components/chat/polp.vue'
import test from '@/components/chat/test.vue'
import text from '@/components/chat/text.vue'





import AddOrder from '@/components/AddOrder.vue'
import Purchase from '@/components/Purchase.vue'
import count from '@/components/PieCount.vue'
import Logs from '@/components/Logs.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Home,
    children:[
      {path:'/logisticList',component:LogisticList},
      {path:'/logisticsScanning',component:LogisticsScanning},
      {path:'/couponList',component:CouponList},
      {path:'/aaa',component:Aaa},
      {path:'/lll',component:Lll},
      
      
      
      { path: 'aftersaleList',
        component: AftersaleList },
      { path: 'mapList',
        component: BaiduMap},
      { path: 'createLogistics',
        component: CreateLogistics },
      { path: 'watchOrder',
        component: WatchOrder},




        
      
      {
        path:'/chatkefu',component:chatkefu
      },
      {
        path:'/image',component:image
      },
      {
        path:'/file',component:file
      },
      {
        path: '/local/:filePath',
        name: 'local',
        component:local
      },
      {
        path:'/polp',component:polp
      },
      {
        path:'/test',component:test
      },
      {
        path:'/text',component:text
      },

      {path:'/26',component:AddOrder},
      {path:'/27',component:Purchase},
      {path:'/11',component:count},
      {path:'/12',component:Logs},
 
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
